#---
# Excerpted from "Rails for PHP Developers",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material, 
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose. 
# Visit http://www.pragmaticprogrammer.com/titles/ndphpr for more book information.
#---
ActionController::Routing::Routes.draw do |map|
  # meetings routes
  map.orders '/orders/show/:id', :controller => "orders",
                                    :action     => "show"
  map.new_order '/orders/new', :controller => "orders", 
                                   :action     => "new"

  
map.orders '/orders/show/:id', :controller => "orders", :action => "show"
map.new_order '/orders/new', :controller => "orders", :action => "new"
map.clients '/clients/show/:id', :controller => "client", :action => "show"
map.new_client '/clients/new', :controller => "client", :action => "new" 

  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id'
  
  map.connect ':controller/:action/:id.:format'
end
